# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=py3-nbxmpp
_pkgname=nbxmpp
pkgver=5.0.4
pkgrel=0
pkgdesc="A non-blocking XMPP implementation for python"
url="https://dev.gajim.org/gajim/python-nbxmpp/"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-idna py3-precis-i18n py3-packaging libsoup3"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
options="!check" # no test suite
builddir="$srcdir"/$_pkgname-$pkgver

replaces=py-nbxmpp # Backwards compatibility
provides=py-nbxmpp=$pkgver-r$pkgrel # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl

}

sha512sums="
6a6c042d2cee305ce6f5e8968857d3a4e5644fe12f5327514ea0ec89e7ce013f891d25eebca15c176d1ce821a6c8592d99ce224139b2a8b6c1ac3c6e2826ffb4  nbxmpp-5.0.4.tar.gz
"
